package com.example.computer_exam_training_sys.service.impl;

import com.example.computer_exam_training_sys.entity.User_Schedules_Entity;
import com.example.computer_exam_training_sys.mapper.User_Schedules_Mapper;
import com.example.computer_exam_training_sys.service.User_Schedules_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class User_Schedules_Service_impl implements User_Schedules_Service {
    @Autowired
    private User_Schedules_Mapper mapper;

    @Override
    public List<User_Schedules_Entity> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public List<User_Schedules_Entity> selectByUserId(Integer userId) {
        return mapper.selectByUserId(userId);
    }

    @Override
    public int insert(User_Schedules_Entity entity) {
        return mapper.insert(entity);
    }

    @Override
    public int update(User_Schedules_Entity entity) {
        return mapper.update(entity);
    }

    @Override
    public int delete(Integer scheduleId) {
        return mapper.delete(scheduleId);
    }
}
